import Vue from 'vue'
import App from './App'

import util from './common/util.js'
import config from './common/config.js'
import dicUtil from './common/dicUtil.js'
import api from './common/api.js'
import store from './store'
import * as filters from './common/filter.js'
import uView from 'uview-ui'


Vue.use(uView)
Vue.config.productionTip = false
Vue.prototype.$util = util
Vue.prototype.$config = config
Vue.prototype.$dicUtil = dicUtil
Vue.prototype.$api = api
Vue.config.productionTip = false

Vue.prototype.$store = store
Vue.prototype.$backgroundAudioData = {
	playing: false,
	playTime: 0,
	formatedPlayTime: '00:00:00'
}
Vue.prototype.$adpid = "1111111111"

Vue.prototype.$EventBus = new Vue();

App.mpType = 'app'

Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

const app = new Vue({
	store,
	...App
})
app.$mount()